<?php

use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generateUrl new
| model instances for testing / seeding your application's database.
|
*/

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Store\WaxSkinRecord::class, function (Faker $faker) {
    return [
        'skin_record_id' => 0,
        'wechat_user_id' => 0,
        'itemsid'        => $faker->numberBetween(1, 5),
        'itemsname'      => $faker->name,
        'value'          => $faker->numberBetween(30, 80),
        'levelsort'      => $faker->numberBetween(1, 4),
        'type'           => $faker->name, // app 用的字段类型
        'origin_img'     => \Illuminate\Http\UploadedFile::fake()->create('origin_img'),
        'analyse_img'    => \Illuminate\Http\UploadedFile::fake()->create('analyse_img'),
    ];
});
